Ektron CMS400.Net Reference

>>Using Other Development Frameworks > Custom ColdFusion Functions > Add Content

Add Content

The add content function allows you to programmatically add a new content block to Ektron CMS400.NET without the need of logging in.

Here is the format for the add content function:

<CFModule template=”#request.ecm.AppPath#ecmAddContent.cfm”

Username=””,
Password=””,
Domain=””,
content_title=””,
content_comment=””,
ContentHtml=””,
SummaryHTML=””,
ContentLanguage=””,
FolderID=””,
GoLive=””,
EndDate=””,
MetaInfo=””


>

This function is basically the same as the Add Content function in ASP. See Add Content for details.

The only difference between the Coldfusion function and the ASP one is the syntax for implementing it. The ColdFusion example is below.

Add Content Example

The following is an example of the add content function in a template:

<tr>

<td>

<CFModule template="#request.ecm.AppPath#ecmAddContent.cfm "AddContent UserName="admin", Password="admin", Domain="", content_title="Content Title", content_comment="Comment", ContentHTML="This is the <b>body</b> of the content.", SummaryHTML="This is the <i>summary</i> for the content.", ContentLanguage="1033", FolderID="0", GoLive="", EndDate="", MetaInfo="">

</td>

</tr>


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.